package com.entity;


import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.wcansoft.baseWeb.mybatis_plugin.orm.anotation.Table;

@JsonIgnoreProperties(ignoreUnknown=true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "user", id = "id", auto_increment = true)
public class User extends BaseDomain{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String userName;
	private String passwd;
	private Long vscore;
	private Long vscoreLock;//锁定积分数
	private String trueName;
	private Integer state;
	private Date regTime;
	private String cellphone;
	private String address;
	private String idcard;
	private String head;
	private String nickname;//用户昵称
	private String sex;//用户性别
	private String payPasswd;//支付密码
	private String email;
	private Integer  provinceId;
	private Integer cityId;
	private String birthday;
//	private Integer sex;
//	private String tel;
//	private String email;
//	private String note;
//	private String nickName;
//	private String fax;
//	private String weixin_oid;
//	private String weixin_key;
//	private String weibo_oid;
//	private String weibo_key;
//	private String qq_oid;
//	private String qq_key;
	private Integer growthPoints;//用户成长值
	private Long totalCashRecharge;//V币账户现金充值累计额
	private Long totalJifenExchange;//V币账户积分兑换累计额
	private Long totalWelfareRecharge;//V币账户福利充值累计额
	private String memberType;//按照对应位置赋值（1是/0否）判断会员属性，初始化赋值0000000000，第1位自主会员，第二位福利会员
	private Integer memberStatu;//0未开通（新建）、1开通、9关闭
	private Long jifenBusinessId;//福利企业id
	private Long employeeTypeId;//员工分类id
	private String employeeNumber;//员工工号
	private Long welfareBalance;//V币账户福利充值账号余额
	private String remark;
	private Long welfareBusinessId;//企业福利Id
	private Long welfareBusinessDepartmentId;//所属部门id
	private Integer isSecurePayment;//是否选择屏密支付：0不支持，1支持
	
	
	
	//用户状态
	public static final int STATE_NORMAL = 0;
	public static final int STATE_FREEZE = 1;
	
	
	public Long getTotalCashRecharge() {
		return totalCashRecharge;
	}
	public void setTotalCashRecharge(Long totalCashRecharge) {
		this.totalCashRecharge = totalCashRecharge;
	}
	public Long getTotalJifenExchange() {
		return totalJifenExchange;
	}
	public void setTotalJifenExchange(Long totalJifenExchange) {
		this.totalJifenExchange = totalJifenExchange;
	}
	public Long getTotalWelfareRecharge() {
		return totalWelfareRecharge;
	}
	public void setTotalWelfareRecharge(Long totalWelfareRecharge) {
		this.totalWelfareRecharge = totalWelfareRecharge;
	}
	public String getMemberType() {
		return memberType;
	}
	public void setMemberType(String memberType) {
		this.memberType = memberType;
	}
	public Integer getMemberStatu() {
		return memberStatu;
	}
	public void setMemberStatu(Integer memberStatu) {
		this.memberStatu = memberStatu;
	}
	public Long getJifenBusinessId() {
		return jifenBusinessId;
	}
	public void setJifenBusinessId(Long jifenBusinessId) {
		this.jifenBusinessId = jifenBusinessId;
	}
	public Long getEmployeeTypeId() {
		return employeeTypeId;
	}
	public void setEmployeeTypeId(Long employeeTypeId) {
		this.employeeTypeId = employeeTypeId;
	}
	public String getEmployeeNumber() {
		return employeeNumber;
	}
	public void setEmployeeNumber(String employeeNumber) {
		this.employeeNumber = employeeNumber;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Long getWelfareBalance() {
		return welfareBalance;
	}
	public void setWelfareBalance(Long welfareBalance) {
		this.welfareBalance = welfareBalance;
	}
	public Integer getGrowthPoints() {
		return growthPoints;
	}
	public void setGrowthPoints(Integer growthPoints) {
		this.growthPoints = growthPoints;
	}
	public String getPayPasswd() {
		return payPasswd;
	}
	public void setPayPasswd(String payPasswd) {
		this.payPasswd = payPasswd;
	}
	public Long getVscore() {
		return vscore;
	}
	public void setVscore(Long vscore) {
		this.vscore = vscore;
	}
	//	-------------------------------------------------------------
	private static HashMap<Integer, String> stateList = null;
	public static void setStateList() {
		stateList = new LinkedHashMap<Integer, String>();
		stateList.put(new Integer(0),"正常");
		stateList.put(new Integer(1),"冻结");
	}
	public static HashMap<Integer, String> getStateList() {
		if(stateList==null)
			setStateList();
		return stateList;
	}

	public String getStateStr() {
		return getStateList().get(state);
	}
//-------------------------------------------------------------

	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public Date getRegTime() {
		return regTime;
	}
	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCellphone() {
		return cellphone;
	}
	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	
	public String getIdcard() {
		return idcard;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Integer getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}
	public Integer getCityId() {
		return cityId;
	}
	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public Long getWelfareBusinessId() {
		return welfareBusinessId;
	}
	public void setWelfareBusinessId(Long welfareBusinessId) {
		this.welfareBusinessId = welfareBusinessId;
	}
	public Integer getIsSecurePayment() {
		return isSecurePayment;
	}
	public void setIsSecurePayment(Integer isSecurePayment) {
		this.isSecurePayment = isSecurePayment;
	}
	public Long getWelfareBusinessDepartmentId() {
		return welfareBusinessDepartmentId;
	}
	public void setWelfareBusinessDepartmentId(Long welfareBusinessDepartmentId) {
		this.welfareBusinessDepartmentId = welfareBusinessDepartmentId;
	}
	public String getHead() {
		return head;
	}
	public void setHead(String head) {
		this.head = head;
	}
	public Long getVscoreLock() {
		return vscoreLock;
	}
	public void setVscoreLock(Long vscoreLock) {
		this.vscoreLock = vscoreLock;
	}
	
	
}
